package com.software.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.software.dao.AgentDao;
import com.software.model.DrmAgentImg;
import com.software.model.DrmAgentIntroduce;
import com.software.service.IntroduceService;

@Transactional
@Service("introduceService")
public class IntroduceServiceImpl implements IntroduceService {

	@Autowired
	private AgentDao agentDao;

	@Override
	public DrmAgentIntroduce queryIntroduce(DrmAgentIntroduce data) {
		return agentDao.qrueyIntroduce(data);
	}

	@Override
	public int saveIntroduce(DrmAgentIntroduce data) {

		return agentDao.insertIntroduce(data);
	}

	@Override
	public int updateIntroduce(DrmAgentIntroduce data) {

		return agentDao.updateIntroduce(data);
	}
	
	@Override
	public int saveAgentImg(DrmAgentImg data){
		return agentDao.insertDrmAgentImg(data);
	}

}